
package com.hx.zhg.web.controller.error;

import com.hx.zhg.web.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 错误页处理
 */
@Controller
@RequestMapping(value = "/error")
public class ErrorHandleController extends BaseController {

    private static final String ERR_VIEW_400 = "/error/400";
    private static final String ERR_VIEW_401 = "/error/401";
    private static final String ERR_VIEW_403 = "/error/403";
    private static final String ERR_VIEW_404 = "/error/404";
    private static final String ERR_VIEW_500 = "/error/500";

    @RequestMapping(value = "/400")
    public String ERR_VIEW_400() {
        return ERR_VIEW_400;
    }

    @RequestMapping(value = "/401")
    public String ERR_VIEW_401() {
        return ERR_VIEW_401;
    }

    @RequestMapping(value = "/403")
    public String ERR_VIEW_403() {
        return ERR_VIEW_403;
    }

    @RequestMapping(value = "/404")
    public String ERR_VIEW_404() {
        return ERR_VIEW_404;
    }

    @RequestMapping(value = "/500")
    public String ERR_VIEW_500() {
        return ERR_VIEW_500;
    }
}
